package com.tron.dobest.elasticsearch;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.elasticsearch.annotations.Document;

/**
 * @description 读取容器中bean的属性做为索引id
 * @auther TRON
 * @create 2020-02-24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(indexName = "#{esAttribute.indexName}")
public class ElkData {
    private String id;
    private String title;
    private Long time;
}
